Get the difference between the two listsΒΆ

Get the difference between the two lists.
L1 = [1, 2, 3, 4]
L2 = [1, 2]

print(list(set(L1) - set(L2)))    # [3, 4]